﻿using TechTalk.SpecFlow;
using WatiN.Core;

namespace Liekhus.Testing.BDD.Web
{
    public static class WebBrowser
    {
        public static Browser Current
        {
            get
            {
                if (ScenarioContext.Current.ContainsKey("browser") == false)
                {
                    ScenarioContext.Current["browser"] = new IE();
                }

                return ScenarioContext.Current["browser"] as Browser;
            }
        }
    }
}
